"""
Development environment settings for CoolYunTest project
"""
from loguru import logger
from config.settings import *
from utils.config import ConfigBox

logger.info("<<<==========load production environment settings===========>>>")

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

ALLOWED_HOSTS = ["*"]

# 配置内部IP（开发环境）
INTERNAL_IPS = ["127.0.0.1"]

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = "django-insecure-_#cho$+9n0hiqwjuta#2s@1co+1o2jdya&gc2u2^is5h9kc!)q"

# Mysql settings
DATABASES = ConfigBox(CONFIG_DIR.joinpath("db", "mysql.yaml")).development

# Redis settings
CACHES = ConfigBox(CONFIG_DIR.joinpath("db", "redis.yaml")).development

# 性能调优工具
INSTALLED_APPS.insert(0, "debug_toolbar")

### User settings ###
# 用户会话信息
USER_SESSION_KEY = "user_info"
